/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * RegistroPedidoCajera.java
 *
 * Created on 23/05/2011, 11:46:41 AM
 */

package GUI;

import Interfaz.Interfaz;
import javax.swing.ImageIcon;

/**
 *
 * @author Vane
 */
public class RegistroPedidoCajera extends javax.swing.JFrame {

    /** Creates new form RegistroPedidoCajera */
	private Interfaz laInterfaz;
    public RegistroPedidoCajera(Interfaz laInterfaz) {
		this.laInterfaz=laInterfaz;
        initComponents();
		this.setLocationRelativeTo(null); // Cmabiar icono de java en ventana
       this.setIconImage(new ImageIcon("src/imagenes/marketplus2.png").getImage());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jTPuntosAfiliados = new javax.swing.JTextField();
        jTCodigoProducto = new javax.swing.JTextField();
        jTTotalAfiliado = new javax.swing.JTextField();
        jTTotalIva = new javax.swing.JTextField();
        jTCodigoEliminarProducto = new javax.swing.JTextField();
        jRadioButton1 = new javax.swing.JRadioButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTableListaPedidoCajera = new javax.swing.JTable();
        jButton1 = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(580, 500));
        setResizable(false);
        getContentPane().setLayout(null);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/marketplus.png"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(10, 0, 100, 90);

        jLabel2.setFont(new java.awt.Font("Tempus Sans ITC", 3, 14));
        jLabel2.setText("Registrar Pedido");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(210, 40, 120, 30);

        jLabel3.setText("Códigos Productos:");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(10, 120, 160, 30);

        jLabel5.setText("Código Eliminar Producto:");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(10, 180, 150, 20);

        jLabel6.setText("Puntos Afiliados:");
        getContentPane().add(jLabel6);
        jLabel6.setBounds(10, 230, 120, 14);

        jLabel7.setText("Total BsF Afiliado:");
        getContentPane().add(jLabel7);
        jLabel7.setBounds(10, 280, 130, 14);

        jLabel8.setText("Total BsF+ IVA:");
        getContentPane().add(jLabel8);
        jLabel8.setBounds(10, 320, 120, 14);
        getContentPane().add(jTPuntosAfiliados);
        jTPuntosAfiliados.setBounds(160, 220, 110, 30);
        getContentPane().add(jTCodigoProducto);
        jTCodigoProducto.setBounds(160, 120, 110, 30);

        jTTotalAfiliado.setHorizontalAlignment(javax.swing.JTextField.TRAILING);
        getContentPane().add(jTTotalAfiliado);
        jTTotalAfiliado.setBounds(160, 270, 110, 30);

        jTTotalIva.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTTotalIvaActionPerformed(evt);
            }
        });
        getContentPane().add(jTTotalIva);
        jTTotalIva.setBounds(160, 310, 110, 30);
        getContentPane().add(jTCodigoEliminarProducto);
        jTCodigoEliminarProducto.setBounds(160, 170, 110, 30);

        jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRadioButton1ActionPerformed(evt);
            }
        });
        getContentPane().add(jRadioButton1);
        jRadioButton1.setBounds(280, 220, 20, 21);

        jTableListaPedidoCajera.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Código ", "Descripción", "Precio"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class, java.lang.Float.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane1.setViewportView(jTableListaPedidoCajera);

        getContentPane().add(jScrollPane1);
        jScrollPane1.setBounds(300, 120, 270, 220);

        jButton1.setText("Procesar Tipos de Pago");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton1);
        jButton1.setBounds(150, 360, 270, 50);

        jLabel4.setText("Lista de Productos");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(390, 90, 130, 20);

        jLabel9.setText("RIF: J-122231245          Desarrollado por: Group Delivery");
        getContentPane().add(jLabel9);
        jLabel9.setBounds(130, 420, 320, 20);

        pack();
    }// </editor-fold>//GEN-END:initComponents

	private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton1ActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_jRadioButton1ActionPerformed

	private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
		// TODO add your handling code here:
		PagoCliente irPagoCliente=new PagoCliente(laInterfaz);
		irPagoCliente.setVisible(true);
		this.dispose();
	}//GEN-LAST:event_jButton1ActionPerformed

	private void jTTotalIvaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTTotalIvaActionPerformed
		// TODO add your handling code here:
	}//GEN-LAST:event_jTTotalIvaActionPerformed

    /**
    * @param args the command line arguments
    */
  

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JRadioButton jRadioButton1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextField jTCodigoEliminarProducto;
    private javax.swing.JTextField jTCodigoProducto;
    private javax.swing.JTextField jTPuntosAfiliados;
    private javax.swing.JTextField jTTotalAfiliado;
    private javax.swing.JTextField jTTotalIva;
    private javax.swing.JTable jTableListaPedidoCajera;
    // End of variables declaration//GEN-END:variables

}
